package com.sleep.service.impl;

import com.sleep.dao.IUserDao;
import com.sleep.model.UserInfoEntity;
import com.sleep.service.IBaseService;
import com.sleep.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

/**
 * Created by fadinglan on 2017/4/10.
 */
@Service
public class UserServiceImpl extends BaseServiceImpl<UserInfoEntity, Serializable> implements IUserService {


    @Autowired
    @Qualifier("userDaoImpl")
    private IUserDao userDao;

    @Override
    public List<UserInfoEntity> queryUser() {
        return userDao.queryUser();
    }

    @Override
    public List<UserInfoEntity> checkAccount(String account) {
        return userDao.checkAccount(account);
    }

    @Override
    public List<UserInfoEntity> checkPassword(String password) {
        return userDao.checkPassword(password);
    }

    @Override
    public List<UserInfoEntity> getUserInfo(String account) {
        return userDao.getUserInfo(account);
    }
}
